package com.clgk.wechatmall.role.bean;

import com.clgk.wechatmall.common.sql.annocation.ID;
import com.clgk.wechatmall.common.sql.annocation.Table;
import com.clgk.wechatmall.common.sql.annocation.Temporal;
import com.clgk.wechatmall.common.sql.annocation.Transient;

/**
 * 角色
 * 
 */
@Table("lampserver.T_ROLE")
public class RoleBean implements java.io.Serializable{

	/**
	* 主键ID
	*/
	@ID
	private Long id;
	
	/**
	* 名称
	*/
	private String name;
	
	/**
	* 权限 如011 其中0:无，1:有;第一位保存，第二位编辑，第三位删除
	*/
	private String power;
	
	/**
	* 创建人ID
	*/
	private Long managerid;
	
	/**
	* 创建时间
	*/
	@Temporal
	private String createtime;
	

	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPower() {
		return power;
	}
	
	public void setPower(String power) {
		this.power = power;
	}
	
	public Long getManagerid() {
		return managerid;
	}
	
	public void setManagerid(Long managerid) {
		this.managerid = managerid;
	}
	
	public String getCreatetime() {
		if(this.createtime != null && this.createtime != "" && this.createtime.endsWith(".0")){
			return this.createtime.replace(".0", "");
		}
		return createtime;
	}
	
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	
	
    
}